﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace MiniOrderSystem.Data.Model
{
    //MINI_COMMODITY 商品表
    [Table("MINI_COMMODITY")]
    public class Commodity:BaseEntity
    {
        public string Name { get; set; }//商品名
        public int Qty { get; set; }//数量
        public int TotalQty { get; set; }//库存数量

        [Required]
        public decimal Price { get; set; } //价格
        public string State { get; set; }//状态
        public string CommodityTypeId { get; set; }//商品类型Id CommodityType
    }
}